<taglib name="html" />
<include file="$includeFile.public_header" /><!--或是"__ADMIN__/header"-->

<import type="js" file="Js.kindeditor/kindeditor" />
<import type="js" file="Js.kindeditor.lang.zh_CN" />
<script type="text/javascript">
    initEditor('menu_content','common');
</script>

<!--  右边内容   -->
<div class="list_tit">
    <span class="tit_left">您当前的位置：首页 > 栏目管理 > 栏目<php>if($_GET['id']){echo '编辑';}else{echo '添加';}</php></span>
    <a href="__URL__/" class="tit_right">+管理栏目</a>
</div>
<div class="page_list">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="list_table">
        <tr><th align="left" style="text-indent:5px;">栏目<present name="$Think.get.id">编辑<else/>添加</present></th></tr>
    </table>
    <form action="__URL__/<php>if($_GET['id']){echo 'update';}else{echo 'insert';}</php>/" name="art_add" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$data.id}" />
        <table cellpadding="0" border="0" width="100%" class="add_table">
            <tr><th width="100">栏目名称:</th>
                <td><input type="text" size="37" name="menu_name" value="{$data.menu_name}" maxlength="30" class="page_txt" /></td>
            </tr>
            <tr><th width="100">英文名称:</th>
                <td><input type="text" size="37" name="menu_name_en" maxlength="30" value="{$data.menu_name_en}" class="page_txt" /><label class="lab"></label></td>
            </tr>
            <tr><th width="100">父级栏目:</th>
                <td align="left">
                    <select name="parent_id" style="width:150px;">
                        <option value="0" <php>if(!$_GET['pid']){echo 'selected="selected"';}</php>>顶级栏目</option>
                        <php>if($all_menu){</php>
                        <foreach name="all_menu" item="menu">
                            <option value="{$menu.id}" <php>if($_GET['pid']==$menu['id']){echo 'selected="selected"';}</php>>{$menu.menu_name}</option>
                        </foreach>
                        <php>}</php>
                    </select>
                </td>	
            </tr>
            <tr><th width="100">栏目类型:</th>
                <td align="left">
            <html:select name="type_id" options="types" selected="data[type_id]" style="select_width" />
            </td>	
            </tr>
            <tr><th width="100">栏目图片:</th>
                <td>
                    <input type="file" class="page_txt cursor" name="image" value="{$data.image}" size="26" />
                </td>	
            </tr>
            <php>if($data['image']){</php>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <img src="{$data.image}" height="100" class="fl" />
                </td>
            </tr>
            <php>}</php>
            <tr><th width="100">栏目外链:</th>
                <td><input type="text" size="37" name="menu_url" maxlength="255" value="{$data.menu_url|default='http://'}" class="page_txt" /><label>若此栏目想链接到其他网站，请输入链接地址</label></td>
            </tr>
            <tr><th width="100">栏目关键词:</th>
                <td><input type="text" size="37" name="menu_keyword" maxlength="100" value="{$data.menu_keyword}" class="page_txt" /><label>对不同栏目使用不同关键词有利于SEO</label></td>
            </tr>
            <tr><th width="100">栏目描述:</th>
                <td>
                    <textarea name="menu_description" cols="35" class="page_txt">{$data.menu_description}</textarea><label>栏目描述，类似于网站的描述，也是SEO作用</label>
                </td>
            </tr>
            <tr><th>栏目内容:<br /><font style="font-weight:normal; color:#FF6600;">单页调用如：<br />关于我们、<br />联系我们。</font></th>
                <td colspan="4" style="text-align:left; padding-top:8px;"><textarea name="menu_content" id="content" rows="20" cols="80" style="width: 98%">{$data.menu_content}</textarea></td></tr>
            <tr height="60">
                <th>&nbsp;</th>
                <td valign="middle"><input type="submit" name="edit_btn" class="btn" value="提 交" /></td>
            </tr>
        </table>
    </form>
    <div class="clr"></div>
</div>
<include file="$includeFile.public_footer" />